package com.kfm.wiki.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.kfm.wiki.entity.Content;
import com.kfm.wiki.entity.Doc;

import java.util.List;

/**
* @author 10854
* @description 针对表【doc(文档)】的数据库操作Service
* @createDate 2022-12-17 10:17:14
*/
public interface DocService extends IService<Doc> {

    PageInfo<Doc> list(Integer current, Integer pageSize, Doc doc);

    List<Tree<String>> all(Doc doc);

    boolean save(Doc doc);

    boolean deleteCascade(Long id);

    int incrementVote(Long id);
}
